gdk: Address pad events similarly to keyboard events
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 4 Aug 2016 17:10:21 +0000 (19:10 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Tue, 23 Aug 2016 19:01:44 +0000 (21:01 +0200)
We want the same treatment for those, the event will be emitted on the
toplevel, which will then decide what to do with the event.

It just doesn't make much sense to propagate those up/down the hierarchy,
when we want specifically one action being triggered from those.

https://bugzilla.gnome.org/show_bug.cgi?id=770026

gdk/gdkwindow.c

index 4a49c01b2574b87ef27e1d7c35941fcf5849093f..be40ec5a1401ab44d8a275da95d0d3f1e516053c 100644 (file)
@@ -9860,7 +9860,8 @@ _gdk_windowing_got_event (GdkDisplay *display,
 
   if (device)
     {
-      if (gdk_device_get_source (device) != GDK_SOURCE_KEYBOARD)
+      if (gdk_device_get_source (device) != GDK_SOURCE_KEYBOARD &&
+          gdk_device_get_source (device) != GDK_SOURCE_TABLET_PAD)
         {
           pointer_info = _gdk_display_get_pointer_info (display, device);